package com.my.test.thread;

public class Girl extends Thread {

    private int count;
    private Account account;

    public Girl(Account account){
        this.account = account;
    }


    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        account.pickMoney("rose",9000);
    }
}
